//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, // 关闭 eslint 验证
  publicPath: './',
  css: {
    loaderOptions: {
      sass: {
        sassOptions: { outputStyle: "expanded" },
        additionalData: `@import "@/utils/adapterVwVh.scss";`,// px 转vw,vh
      }
    }
  },
  devServer: {
    proxy: {
      '/bigscreen': {
        target: 'http://114.55.179.72:8888', // 代理的目标地址
        changeOrigin: true, // 是否改变请求的源地址
        pathRewrite: {
          '^/bigscreen': '' // 重写请求路径，将/bigscreen替换为空字符串
        }
      }
    }
  },
})
